﻿using System.ComponentModel.DataAnnotations;

namespace AspAuthentication.Core
{
    /// <summary>
    /// Defines the class LoginContainer
    /// </summary>
    public class LoginContainer
    {
        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>The password.</value>
        [Required(ErrorMessage = "required!"), StringLength(200, MinimumLength = 1)]
        public string Password { get; set; }
        /// <summary>
        /// Gets or sets the username.
        /// </summary>
        /// <value>The username.</value>
        [Required(ErrorMessage = "required!"), StringLength(200, MinimumLength = 1)]
        public string Username { get; set; }
        /// <summary>
        /// Gets or sets a value indicating whether [remember me].
        /// </summary>
        /// <value><c>true</c> if [remember me]; otherwise, <c>false</c>.</value>
        public bool RememberMe { get; set; }
    }
}